package com.woniuxy.main.util;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;

public class SessionUtil {
	
	public static Session getSession(){
		//获取subject对象
		Subject subject =SecurityUtils.getSubject();
		//获取session
		Session session =subject.getSession();
		return session;
	}

}
